import request from '@/utils/request'


//分页查询通知列表
export function getNoticeList(vo) {
  return request({
    url: '/med-admin-notice/notice/list',
    method: 'get',
    params: vo
  })
}


//标记通知为已读
export function markNoticeRead(noticeId) {
  return request({
    url: `/med-admin-notice/notice/read/${noticeId}`,
    method: 'post'
  })
}


//获取未读通知数量
export function getUnreadCount(noticeType) {
  return request({
    url: '/med-admin-notice/notice/unreadCount',
    method: 'get',
    params: { noticeType }
  })
}